package com.googlecode.skald.server.demo;

/**
 * The implicit player avatar performing actions in the game world.
 * 
 * @author Zach Tomaszewski
 */
public class PlayerCharacter extends WorldObject {

  @Override
  public String actorOf(Action act, WorldObject dobj, WorldObject iobj){
    switch (act) {
      case WAIT:
        WorldObject dog = GameWorld.objs.get("dog");
        return "<p>You stand around watching the " + 
          dog + ".  The " + dog + 
            " watches you in return.</p>";
      default:
        return "";
    }
  }
  
  @Override
  public String getName() {
    return "you";
  }
}
